package com.skaura.cryserver.model;

import lombok.Data;

@Data
public class MessageWapper {
    public static final int HEADER_SIZE = 4;
    private short type;
    private short len;
    private String body;

    public MessageWapper(){}

    public MessageWapper(short type, short len, String body) {
        this.type = type;
        this.len = len;
        this.body = body;
    }

    public MessageWapper(short type,String body){
        this.type = type;
        this.body = body;
        this.len = (short) this.body.length();
    }
}